package rfid.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j(topic = "思谷RFID采集执行类")
@Component
public class WatchSgRfidAction {



    /*采集机床软PLC*/
    private int doCount = 1;
    public void doFirst(){
        try {
            Thread.currentThread().setName("思谷RFID采集进程");

            new SG_RfidServiceImpl().strRead(520);

            log.info("执行第{}次", doCount++);
        } catch (Throwable throwable) {
            //log.error("采集错误->", throwable.getMessage());
        }
    }
}
